GetCurrentISA
You can use theGetCurrentISA
function to get the current instruction set architecture.
ISAType GetCurrentISA (void);DESCRIPTION
TheGetCurrentISA
function returns the current instruction set architecture. See "Instruction Set Architectures" on page 2-35 for a list of the valuesGetCurrentISA
can return.SPECIAL CONSIDERATIONS
Currently, theGetCurrentISA
function is defined as a compiler macro.
#if defined(powerc) || defined(__powerc) #define GetCurrentISA() ((ISAType) kPowerPCISA) #else #define GetCurrentISA() ((ISAType) kM68kISA) #endifThe implementation details are subject to change.